import Vuex from 'vuex';
import Vue from 'vue';
//需要使用插件一次
Vue.use(Vuex);
import home from './modules/home';
import search from './modules/search';
import detail from './modules/detail';
import shopcart from './modules/shopcart';
import user from './modules/user';
import trade from './modules/trade';
export default new Vuex.Store({
  modules: {
    home,
    search,
    detail,
    shopcart,
    user,
    trade,
  },
});
